package org.ushio.nchu_22201408.service;

import org.ushio.common_module.entity.User;

import java.util.List;

public interface UserService {
    //根据手机号找用户（验证登录）
    User findUserByPhoneNumber(String phoneNumber);
    public boolean judgeFindUserByPhoneNumber(String phoneNumber);
    //注册
    boolean registerUser(User user);
    //登录
    boolean loginUser(String phoneNumber, String password);
    //token实现
    String generateToken(String phoneNumber, String password);
    boolean updateUser(User user);
    List<User> getAllUsers();
    boolean banUser(String phoneNumber);

}